package com.oop.ch07.print;

//打印机类
public class Print {
	private InBox inBox;//墨盒类型
	private Paper paper;//纸张类型
	
	public Print(){}
	
	//有参构造方法 InBox，Paper 接口
	public Print(InBox inBox,Paper paper){
		this.inBox=inBox;
		this.paper=paper;
	}
	
	public void out(){
		System.out.println("使用"+this.inBox.getColor()+"打印"+this.paper.getSize()+"纸张");
	}
	
	public InBox getInBox() {
		return inBox;
	}
	
	public void setInBox(InBox inBox) {
		this.inBox = inBox;
	}
	
	public Paper getPaper() {
		return paper;
	}
	
	public void setPaper(Paper paper) {
		this.paper = paper;
	}
}
